package org.su.generalmvc.bind;

import org.su.generalmvc.IEditor;
import org.su.generalmvc.IParamBinder;

/**
 * Created by yangchuan on 15/6/11.
 */
public class DefaultParamBinder implements IParamBinder {

    DefaultEditor editor = new DefaultEditor();

    /**
     * 绑定数据编辑器
     * @param clazz
     * @param editor
     */
    public void bind(Class<?> clazz, IEditor editor){

    };

    /**
     * 得到数据编辑器
     * @param type
     * @return
     */
    public IEditor findEditor(Class<?> type){
        return editor;
    };

    /**
     * 是否自定义的符合类型数据编辑器
     * @param editor
     * @return
     */
    public boolean isCustomEditor(IEditor editor){
        return false;
    }

    @Override
    public boolean isBaseEditor(Class<?> type) {
        return false;
    }

    ;
    
}
